package org.example.core.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import freemarker.template.TemplateException;
import org.example.core.Dto.Text2ImageCanelResponseDto;
import org.example.core.Dto.Text2ImageResDto;
import org.example.core.Dto.Text2ImageResponseDto;
import org.example.core.Dto.common.Result;
import org.example.core.pojo.ComfyuiTask;
import org.example.core.pojo.UserResult;

import java.io.IOException;
import java.util.List;

public interface Text2ImageService {

    public ComfyuiTask getComfyuiTask(Text2ImageResDto dto) throws TemplateException, IOException;

    Text2ImageResponseDto TextToImage(Text2ImageResDto dto) throws TemplateException, IOException;

    public List<UserResult> list(int page, int size);


    String  canel(Text2ImageCanelResponseDto text2ImageResponseDto) throws IOException;

    Result<Object> proprity(Text2ImageCanelResponseDto text2ImageResponseDto);
}
